﻿using System.ComponentModel.DataAnnotations;

namespace LERP.Web.Controllers.ViewModels.BugViewModels
{
    public class BugViewModel 
    {
        /// <summary>
        /// 姓名
        /// </summary>  
        [Display(Name = "姓名")]
        [StringLength(32, ErrorMessage = "{0}不能超过{1}个字符", MinimumLength = 0)]
        public virtual string Name { get; set; }
        /// <summary>
        /// 标题
        /// </summary>  
        [Display(Name = "标题")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(100, ErrorMessage = "{0}不能超过{1}个字符", MinimumLength = 0)]
        public virtual string Title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name = "内容")]
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(5000, ErrorMessage = "{0}不能超过{1}个字符", MinimumLength = 0)]
        public virtual string Content { get; set; } 
    }
}